package demo.impl.icmp;

import demo.api.IcmpEchoSession;

/**
 * Echo响应packet信息
 * 
 * @author caohj
 * @date 2017年8月5日
 */
public class EchoReplyInfoImpl implements IcmpEchoSession.EchoReplyInfo {

	private long duration;
	private int ttl;
	private String replySrcAddr;

	public EchoReplyInfoImpl(long duration, int ttl, String replySrcAddr) {
		this.duration = duration;
		this.ttl = ttl;
		this.replySrcAddr = replySrcAddr;
	}

	@Override
	public long getDurationInMilliSecond() {
		return duration;
	}

	@Override
	public int getTTL() {
		return ttl;
	}

	@Override
	public String getReplySrcAddr() {
		return replySrcAddr;
	}

}
